Include version number in binary and help output.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 6 Dec 2002 15:49:23 +0000 (15:49 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 6 Dec 2002 15:49:23 +0000 (15:49 +0000)
gpsbabel/Makefile
gpsbabel/main.c

index 421be7e71b1602416c128599d1bfd779c7a92dbe..003114d5b243491c52976df75900128b434752ce 100644 (file)
@@ -19,6 +19,9 @@ all: gpsbabel
 gpsbabel: $(OBJS)
        $(CC) $(CFLAGS) $(OBJS) -o gpsbabel -lexpat -lm
 
+main.o:
+       $(CC) -c $(CFLAGS) -DVERSION=\"$(VERSIOND)\" $<
+
 clean:
        rm -f $(OBJS) gpsbabel gpsbabel.exe
 
@@ -28,8 +31,8 @@ dep:
        make clean && make CC="gcc -MMD"  && cat *.d */*.d > /tmp/dep
        echo Edit Makefile and bring in /tmp/dep
 
-VERSIONU=1_0_0
-VERSIOND=1.0.0
+VERSIONU=1_1_0_pre1206
+VERSIOND=1.1.0_pre1206
 release:
        rm -fr gpsbabel-$(VERSIOND)
        cvs export -r gpsbabel_$(VERSIONU) -d gpsbabel-$(VERSIOND) gpsbabel
index f31940525e4397a5af42ef9d56899900c2b73115..4e51dfce0a30705121e0875f3af65352338006bf 100644 (file)
@@ -26,6 +26,7 @@ global_options global_opts;
 void
 usage(const char *pname)
 {
+       printf("GPSBabel Version %s.  http://gpsbabel.sourceforge.net\n",VERSION );
        printf("Usage: %s [-s] [-t|-w|-r] -i <INPUT_FILE_TYPE> -f <INPUT_FILE> -o <OUT FTYPE> -F <OUTPUT_FILE>\n", pname);
        printf("Supported file types:\n");
        disp_vecs();